import requests


# 1.请求的url
url = 'http://www.baidu.com'
headers = {
    "User-Agent":"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"
}

free_proxy = {'http':'117.184.67.118:8060'}

response = requests.get(url=url, headers=headers,proxies=free_proxy)
print(response.status_code)


